<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>WIFI TAPE</title>
</head>
<body>
<header>CONFIGURE(HuaweiTAP)</header>
<div class="group">
    <p class="title">Network</p>
    <div class="inputs">
        <div class="ig">
            <label for="net-dhcp">DHCP</label>
            <input type="checkbox" id="net-dhcp">
        </div>
        <div class="ig">
            <label for="net-ip">IP</label>
            <input type="text" id="net-ip" placeholder="static ip">
        </div>
        <div class="ig">
            <label for="net-netmask">Netmask</label>
            <input type="text" id="net-netmask" placeholder="wifi netmask">
        </div>
        <div class="ig">
            <label for="net-gateway">Gateway</label>
            <input type="text" id="net-gateway" placeholder="wifi gateway ">
        </div>
        <div class="ig">
            <label for="net-dns">DNS</label>
            <input type="text" id="net-dns" placeholder="wifi DNS">
        </div>
    </div>
</div>
<div class="group">
    <p class="title">WIFI</p>
    <div class="inputs">
        <div class="ig">
            <label for="wifi-ssid">SSID</label>
            <input type="text" id="wifi-ssid" placeholder="wifi SSID">
        </div>
        <div class="ig">
            <label for="wifi-password">Password</label>
            <input type="password" id="wifi-password" placeholder="wifi password">
        </div>
    </div>
</div>
<div class="group">
    <p class="title">Huawei API</p>
    <div class="inputs">
        <div class="ig-textarea">
            <label for="api-curl">Commit URL</label>
            <textarea id="api-curl" placeholder="API Commit URL"></textarea>
        </div>
        <div class="ig">
            <label for="api-type">Type</label>
            <input type="text" id="api-type" placeholder="API Params Type">
        </div>
        <div class="ig">
            <label for="api-wid">Warehouse ID</label>
            <input type="text" id="api-wid" placeholder="API Warehouse ID">
        </div>
        <div class="ig">
            <label for="api-eid">Entity ID</label>
            <input type="text" id="api-eid" placeholder="API Entity ID">
        </div>
    </div>
</div>
<button id="btn-apply">Save Now</button>
<div class="group">
    <p class="title">Script Upgrade</p>
    <form action="#" method="post" enctype="multipart/form-data" class="inputs" id="upgrade-form">
        <div class="ig">
            <label for="upgrade-file">FILE:</label>
            <input type="file" name="file" id="upgrade-file">
        </div>
        <div class="ig">
            <label for="upgrade-file-name">FILENAME:</label>
            <input type="text" name="fileName" id="upgrade-file-name" placeholder="Script filename">
        </div>
        <div class="ig">
            <label for="submit">ClickToUpload</label>
            <button id="submit" type="submit">UPLOAD</button>
        </div>
    </form>
</div>
<div class="mask" id="mask">
    <p>Loading......</p>
</div>
</body>
<style>
    html, body {
        margin: 0;
        padding: 0;
        background-color: #F5F5F9;
    }

    header {
        background-color: #1B82D2;
        height: 40px;
        text-align: center;
        color: white;
        line-height: 40px;
        font-size: 1.2rem;
    }

    .group .title {
        color: #A9A1A5;
        margin: 0;
        padding: 5px 0 5px 5px;
    }

    .group .inputs {
        background-color: white;
        border-top: 1px solid #E4E4E4;
        border-bottom: 1px solid #E4E4E4;
    }

    .ig {
        width: 90%;
        margin: 0 auto;
        font-size: 17px;
        border-top: 1px solid #E4E4E4;
        border-bottom: 1px solid #E4E4E4;
    }

    .ig label {
        color: #333333;
        font-size: .8rem;
        display: block;
        margin: 2px 0 0 2px;
    }

    .ig input {
        border: none;
        outline: none;
        font-size: 16px;
        width: 55%;
        height: 45px;
        margin: 0;
        padding: 0 5px;
    }

    .ig-textarea {
        width: 90%;
        height: 100px;
        margin: 0 auto;
    }

    .ig-textarea label {
        font-size: .8rem;
        display: block;
        border-bottom: 1px solid #E4E4E4;
    }

    .ig-textarea textarea {
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        outline: none;
        font-size: 1.2rem;
        height: 70%;
    }

    button {
        width: 70%;
        margin: 10px auto;
        display: block;
        height: 48px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        background-color: #118EE9;
        border: none;
        border-radius: 5px;
        outline: none;
    }

    button:hover {
        background-color: #1B82D2;
    }

    .ig input[type=checkbox] {
        line-height: 45px;
        height: 20px;
        margin: 12px;
        width: 20px;
    }

    .mask {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        display: flex;
        align-items: center;
    }

    .mask p {
        color: white;
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }
</style>
<script src="index.js"></script>
</html>

